package com.qxbb.report.Enum;

/**
 * @Author: pebble
 * @CreateTime: 2023-11-15  11:02
 * @Description: 货品追踪枚举
 * @Version: 1.0
 */
public enum DocumentType {

    HEADQ_SALES("HS","总部采购"),
    HEADQ_SALES_RED("HSC","总部采购_红冲"),
    HEADQ_RETURN("HR","总部退货"),
    HEADQ_RETURN_RED("HRC","总部退货_红冲"),
    CHAIN_SALES("CS","零售销售"),
    CHAIN_SALES_RED("CSC","零售销售_红冲"),
    CHAIN_RETURN("CR","零售退货"),
    CHAIN_RETURN_RED("CRC","零售退货_红冲"),
    CHAIN_EXCHANGE("CX","换货单"),
    CHAIN_EXCHANGE_RED("CXC","换货单_红冲"),
    CHAIN_TRANSFER("CT","调货单"),
    CHAIN_TRANSFER_RED("CTC","调货单_红冲"),
    CHAIN_TRASFER2("CTT","调货单2"),
    CHAIN_TRASFER2_RED("CTTC","调货单2_红冲"),
    CHAIN_OVERFLOW("CO","盘点报溢"),
    CHAIN_OVERFLOW_RED("COC","盘点报溢_红冲"),
    CHAIN_FLOWLOSS("CL","盘点报损"),
    CHAIN_FLOWLOSS_RED("CLC","盘点报损_红冲"),
    AUTO_BAR_ACCT("ABA","库存扎帐"),
    AUTO_BAR_ACCT_RED("ABAC","库存扎帐_红冲");

    private final String type;

    private final String msg;


    DocumentType(String  type,String msg){
        this.type = type;
        this.msg = msg;
    }


    public static String getDocumentMsg(String type){
        for (DocumentType value : DocumentType.values()) {
            if (type.equals(value.type)){
                return value.msg;
            }
        }
        throw new RuntimeException("未知类型！");
    }



}
